package com.qys.livesMall.anchor.model.vo.lives.app;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 直播观看记录表(LiveWatchRecord)表实体类
 *
 * @author makejava
 * @since 2023-09-14 14:47:53
 */
@Data
@Schema(name = "LiveWatchRecordVO", description = "直播观看记录")
public class LiveWatchRecordVO {

    @Schema(description = "记录id")
    private Long id;

    @Schema(description = "主播id")
    private Long anchorId;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "主播昵称")
    private String anchorName;

    @Schema(description = "主播头像")
    private String anchorAvatar;

    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "观看时间")
    private LocalDateTime createTime;

    @Schema(description = "直播状态(1未开播，2直播中)")
    private Integer liveStatus;
}

